package com.ruoyi.controller;

import com.ruoyi.request.MyShortVideoRequest;
import com.ruoyi.service.MyShortVideoService;
import com.ruoyi.util.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;


/**
 * 短视频列表Controller
 * 
 * @author zunzun
 * @date 2023-11-22
 */
@RestController
@RequestMapping("/api/videos")
public class MyShortVideoController
{
    @Autowired
    MyShortVideoService myShortVideoService;

    /**
     * 查询短视频列表列表
     */
    @GetMapping("/list")
    public JsonData list(MyShortVideoRequest myShortVideoRequest)
    {
        Map<String,Object> list = myShortVideoService.selectMyShortVideoList(myShortVideoRequest);
        return JsonData.buildSuccess(list);
    }


//    /**
//     * 获取短视频列表详细信息
//     */
//    @GetMapping(value = "/{id}")
//    public AjaxResult getInfo(@PathVariable("id") Long id)
//    {
//        return success(myShortVideoService.selectMyShortVideoById(id));
//    }

}
